import request from '../utils/request'

export function addOrder (params) {
  return request.post('/order/addOrder', params)
}

export function confirmOrder (params) {
  return request.get('/order/confirmOrder', { params })
}

// 添加订单地址
export function addAddress (params) {
  return request.post('/address/add', params)
}
// api/order.js 查询地址
export function addresslist (params) {
  return request.get('/address/list', { params })
}
// 修改订单的地址
export function updateOrderAddress (params) {
  return request.post('/order/updateOrderAddress', params)
}
